#pragma once
#include "afxwin.h"
#include "afxcolorbutton.h"
#include "_Marker.h"
class _GraphControl;

// _GraphPropertiesMarker dialog

class _GraphPropertiesMarker : public CDialogEx
{
	DECLARE_DYNAMIC(_GraphPropertiesMarker)

public:
	_GraphPropertiesMarker(CWnd* pParent = NULL);   // standard constructor
	virtual ~_GraphPropertiesMarker();

		void setGraphControlHandle(int Handle)
	{
		m_GraphControlHandle = Handle;
	}
// Dialog Data
	enum { IDD = IDD_FLEX_GRAPH_PROPERTIES_MARKERS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	int m_GraphControlHandle;
	_Marker* m_pSelectedMarker;
	CListCtrl m_ListMarker;
	CEdit m_EditValue;
	CEdit m_EditCaption;
	CMFCColorButton m_ColorPicker;
	_GraphControl* m_pGraphControl;
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButtonAdd();
	afx_msg void OnBnClickedButtonRemove();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnItemchangedMarkerList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnItemclickMarkerList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnItemchangedMarkerList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnEnChangeEdit1();
	afx_msg void OnEnChangeEdit2();
	afx_msg void OnBnClickedMfccolorbutton1();
	void updateMarkerList();
	CButton m_CheckHideMarker;
	afx_msg void OnBnClickedCheckHideMarker();
};
